import React from "react";

import {connect} from 'react-redux'

class ComB extends React.Component{
    render(){
        // console.log(this.props);
        return(
            <div>{this.props.count}</div>
        )
    }
} 


/**
 * 接收两个参数
 */
const mapStateToProps = (state)=>{
    // console.log("ComB",state);
    return state
}

// 数据接收方，实现第一个参数
export default connect(mapStateToProps)(ComB)